package ch.ti.bfh.app.loodel.web.controller;

import ch.ti.bfh.app.loodel.service.TestDataLoadingService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.inject.Inject;

@Component
@Scope("request")
public class SetupController {
    private final TestDataLoadingService testDataLoadingService;

    @Inject
    public SetupController(TestDataLoadingService testDataLoadingService) {
        this.testDataLoadingService = testDataLoadingService;
    }

    public void setup() {
        testDataLoadingService.startSetup();
    }
}
